home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11049 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  789 b 

  1. Path: cedar.cic.net!anderson
  2. From: anderson@cedar.cic.net (Mark Anderson)
  3. Newsgroups: comp.lang.c
  4. Subject: Passing Array to DLL
  5. Date: 21 Mar 1996 05:04:51 GMT
  6. Organization: GreatLinks -- Pioneering Partners Project
  7. Message-ID: <4iqo1j$mli@lastactionhero.rs.itd.umich.edu>
  8. NNTP-Posting-Host: cedar.cic.net
  9. NNTP-Posting-User: anderson
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. I am trying to passing array to an exported function in a DLL I wrote 
  13. with VC++1.5. I used the declaration 
  14.         void func(float* num, .....)
  15. But when I ran the debugger, the array address was corrupted, and I got 
  16. General Protection Fault everytime. Anyone knows what's happening. All 
  17. the codes are writted with *.c. BTY, anyone knows how to correctly 
  18. cross-call c/c++ dll in VC++.
  19.  
  20. E-mail response preferred. Thanks 
  21.